﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news_comments_management.aspx.cs" Inherits="Ccit.OA.NewsCenter.news_comments_management" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>信息管理-评论管理</title>
    <style type="text/css">
        .tbcomment
        {
            border-top: #cccccc 1px solid;
            padding-top: 2px;
        }
        
        .tbcommentBottom
        {
            border-top: #cccccc 1px solid;
            padding-top: 2px;
            border-bottom: #cccccc 1px solid;
            padding-bottom: 2px;
        }
        .commentbar
        {
        	background-color: #E8E8E8;
	        color: #3A4F6C;
	        font-weight: bold;
	        margin-top: 1px;
	        padding-bottom: 4px;
	        padding-left: 4px;
	        padding-right: 4px;
	        padding-top: 4px;
	        height:20px;
        }
        .link:link {
	        color: Blue;
	        text-decoration: none;
        }

        .link:visited {
	        color: Blue;
	        text-decoration: none;
        }

        .link:hover {
	        color: Red;
	        text-decoration: none;
        }

        .link:active {	
	        color: Red;
	        text-decoration: none;
        }
    </style>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript">
    <!--
        /* 当前页码 */
        var oCurrPageNo=1;
        /* 每页包含的记录数 */
        var oEveryPageRecordNum=20;
        /* 时间排序方式 0：倒排序 1：正排序*/
        var oSortType="0"; 
        /* 总页数 */
        var oPageCount=1;
        
        
        /* Init Page Info */
        function doPageLoad()
        {
            document.getElementById("txtContent").value="";
            ExeSearch("0");
        }
        
        function ExeSearch(oType)
        {
            var oNewsId=document.getElementById("hdNewsId").value;
            var oCommentContent="";
            if(oType=="0")
                oCommentContent=jQuery.trim(document.getElementById("txtContent").value);
            else if(oType=="1")
                oCommentContent=jQuery.trim(document.getElementById("txtContent1").value);
            PageMethods.GetCommentByClause(oNewsId,oCommentContent,oSortType,oCurrPageNo,oEveryPageRecordNum,ClientCallBack);
        }
        
        /* Search */
        function doSearch(oType)
        {
            oCurrPageNo=1;
            ExeSearch(oType);
        }
        
        function ClientCallBack(oResult)
        {
            if(oResult=="")
            {
                doDelAllRow();
                document.getElementById("trNoData").style.display="block";
                document.getElementById("lblCommentCount").innerText=0;
                document.getElementById("lblCommentCount1").innerText=0;
                document.getElementById("lblCurrPage").innerText="1/1";
                document.getElementById("lblCurrPage1").innerText="1/1";
                oCurrPageNo=1;
                oPageCount=1;
                oSortType="0";
            }
            else
            {
                document.getElementById("trNoData").style.display="none";
                var oRetResult = eval("("+oResult+")");
                var oComCount=oRetResult.CommentCount;
                document.getElementById("lblCommentCount").innerText=oComCount;
                document.getElementById("lblCommentCount1").innerText=oComCount;
                oPageCount=oRetResult.PageCount;
                document.getElementById("lblCurrPage").innerText=oCurrPageNo+"/"+oPageCount;
                document.getElementById("lblCurrPage1").innerText=oCurrPageNo+"/"+oPageCount;
                doShowCommentData(oRetResult.CommentResult);
            }
            SetJumpStyle();
        }
        
        /* Show Comment Info */
        function doShowCommentData(oCommentData)
        {
            /*  */
            var oCommentType=document.getElementById("hdCommentType").value;
            if(oCommentData!="")
            {
                var otable=document.getElementById("tbCommentList");
                var orow;
                var ocell;
                var otxt;
                var oimg;
                var ospan;
                var otablecount=otable.rows.length;
                /* Delete All Old Comment Data */
                doDelAllRow();
                
                var lstComment = eval("("+oCommentData+")");
                var oComCount=lstComment.length;
                for(var i=0;i<oComCount;i++)
                {
                    var msComment=lstComment[i];
                    var oComId=msComment.Id;
                    var oComDate=msComment.CommentDate;
                    var oComContent=(msComment.CommentContent=="")?"&nbsp;":msComment.CommentContent;
                    var oTopFlag=msComment.TopFlag;
                    var oExpType=msComment.ExpressType;
                    var oComUserName=msComment.UserName;
                    if(oExpType=="1")
                        oComUserName="匿名";
                        
                                           
                    orow=otable.insertRow();
                    orow.id="row_"+i;
                    /* CellOne */
                    ocell=orow.insertCell();
                    ocell.className="pformright";
                    ocell.width="2%";
                    ocell.align="right";
                    otxt=document.createElement("<input type='checkbox' onclick='javascript:CheckAnComment()' id='chk_"+i+"' class='checkbox'>");
                    ocell.appendChild(otxt);
                    otxt=document.createElement("<input type='hidden' id='hdComId_"+oComId+"' value='"+oComId+"'>");
                    ocell.appendChild(otxt);
                    if(oCommentType!="Manage")
                    {
                        ocell.style.display="none";
                    }
                    
                    /* CellTwo */
                    ocell=orow.insertCell();
                    ocell.className="pformright";
                    ocell.width="48%"
                    ocell.align="left";
                    ospan=document.createElement("<span>");
                    ospan.innerText=oComDate+" "+oComUserName;                    
                    ocell.appendChild(ospan);
                    
                    /* CellThree */
                    ocell=orow.insertCell();
                    ocell.className="pformright";
                    ocell.width="50%";
                    ocell.align="right";
                    
                    if(oTopFlag=="0")
                    {
                        otxt=document.createElement("<a href='javascript:doTop(\""+oComId+"\")' class='linktext'>");
                        oimg=document.createElement("<img src='../images/toolbar/backtop.gif' alt='置顶'>");
                    }
                    else
                    {
                        otxt=document.createElement("<a href='javascript:doCancelTop(\""+oComId+"\")' class='linktext'>");
                        oimg=document.createElement("<img src='../images/toolbar/redo.gif' alt='取消置顶'>");
                    }
                    otxt.appendChild(oimg);                                        
                    ocell.appendChild(otxt);                    
                    otxt=document.createElement("<a href='javascript:doDelete(\""+oComId+"\")' class='linktext'>");
                    oimg=document.createElement("<img src='../images/toolbar/delete.gif' alt='删除'>");
                    otxt.appendChild(oimg);                                        
                    ocell.appendChild(otxt);
                    if(oCommentType!="Manage")
                        ocell.style.display="none";
                    
                    
                    orow=otable.insertRow();
                                        
                    ocell=orow.insertCell();
                    if(oCommentType=="Manage")
                    {
                        ocell.colSpan="3";
                    }
                    else
                    {
                        ocell.colSpan="2";
                    }
                    ocell.width="98%";
                    ocell.className="pformright";
                    ospan=document.createElement("<span>");
                    ospan.innerHTML=oComContent;
                    ocell.appendChild(ospan);
                }
            }
        }
        
        /* Delete All Data Row */
        function doDelAllRow()
        {
            var otable=document.getElementById("tbCommentList");
            var oRowCount=otable.rows.length;
            for(var i=1;i<oRowCount;i++)
                otable.deleteRow(1);
        }
        
        
        /* 设置页面跳转链接样式 */
        function SetJumpStyle()
        {
            var objFirstPage=document.getElementById("haFirstPage");
            var objPreviousPage=document.getElementById("haPriviousPage");
            var objNextPage=document.getElementById("haNextPage");
            var objLastPage=document.getElementById("haLastPage");
            var objJump=document.getElementById("haJump")
            
            var objFirstPage1=document.getElementById("haFirstPage1");
            var objPreviousPage1=document.getElementById("haPriviousPage1");
            var objNextPage1=document.getElementById("haNextPage1");
            var objLastPage1=document.getElementById("haLastPage1");
            var objJump1=document.getElementById("haJump1")
            if(oPageCount>1)
            {
                if(oCurrPageNo==1)
                {
                    objFirstPage.disabled=true;
                    objFirstPage.removeAttribute("href");
                    objPreviousPage.disabled=true;
                    objPreviousPage.removeAttribute("href");
                    objFirstPage1.disabled=true;
                    objFirstPage1.removeAttribute("href");
                    objPreviousPage1.disabled=true;
                    objPreviousPage1.removeAttribute("href");
                    
                    objNextPage.disabled=false;
                    objNextPage.href="javascript:doGoNextPage('0')";
                    objLastPage.disabled=false;
                    objLastPage.href="javascript:doGoLastPage('0')";
                    objNextPage1.disabled=false;
                    objNextPage1.href="javascript:doGoNextPage('1')";
                    objLastPage1.disabled=false;
                    objLastPage1.href="javascript:doGoLastPage('1')";
                }
                else if(oCurrPageNo==oPageCount)
                {
                    objNextPage.disabled=true;
                    objNextPage.removeAttribute("href");
                    objLastPage.disabled=true;
                    objLastPage.removeAttribute("href");
                    objNextPage1.disabled=true;
                    objNextPage1.removeAttribute("href");
                    objLastPage1.disabled=true;
                    objLastPage1.removeAttribute("href");
                    
                    objFirstPage.disabled=false;
                    objFirstPage.href="javascript:doGoFirstPage('0')";
                    objPreviousPage.disabled=false;
                    objPreviousPage.href="javascript:doGoPriviousPage('0')";
                    objFirstPage1.disabled=false;
                    objFirstPage1.href="javascript:doGoFirstPage('1')";
                    objPreviousPage1.disabled=false;
                    objPreviousPage1.href="javascript:doGoPriviousPage('1')";
                }
                else
                {
                    objNextPage.disabled=false;
                    objNextPage.href="javascript:doGoNextPage('0')";
                    objLastPage.disabled=false;
                    objLastPage.href="javascript:doGoLastPage('0')";
                    objNextPage1.disabled=false;
                    objNextPage1.href="javascript:doGoNextPage('1')";
                    objLastPage1.disabled=false;
                    objLastPage1.href="javascript:doGoLastPage('1')";
                    
                    objFirstPage.disabled=false;
                    objFirstPage.href="javascript:doGoFirstPage('0')";
                    objPreviousPage.disabled=false;
                    objPreviousPage.href="javascript:doGoPriviousPage('0')";
                    objFirstPage1.disabled=false;
                    objFirstPage1.href="javascript:doGoFirstPage('1')";
                    objPreviousPage1.disabled=false;
                    objPreviousPage1.href="javascript:doGoPriviousPage('1')";
                }
                objJump.disabled=false;
                objJump.href="javascript:doGoNPage('0')";
                objJump1.disabled=false;
                objJump1.href="javascript:doGoNPage('1')";
            }
            else
            {
                objFirstPage.disabled=true;
                objFirstPage.removeAttribute("href");
                objPreviousPage.disabled=true;
                objPreviousPage.removeAttribute("href");
                objNextPage.disabled=true;
                objNextPage.removeAttribute("href");
                objLastPage.disabled=true;
                objLastPage.removeAttribute("href");
                objJump.disabled=true;
                objJump.removeAttribute("href");
                
                objFirstPage1.disabled=true;
                objFirstPage1.removeAttribute("href");
                objPreviousPage1.disabled=true;
                objPreviousPage1.removeAttribute("href");
                objNextPage1.disabled=true;
                objNextPage1.removeAttribute("href");
                objLastPage1.disabled=true;
                objLastPage1.removeAttribute("href");
                objJump1.disabled=true;
                objJump1.removeAttribute("href");
            }
        }
        
        /* Sort By Date */
        function doSort(oType)
        {
            var oSortImg=document.getElementById("imgSort");
            var oSortImg1=document.getElementById("imgSort1");
            if(oSortType=="0")
            {
                oSortType="1";
                oSortImg.alt="时间倒排序";
                oSortImg.src="../images/toolbar/arrdowna.gif";
                oSortImg1.alt="时间倒排序";
                oSortImg1.src="../images/toolbar/arrdowna.gif";
            }
            else if(oSortType=="1")
            {
                oSortType="0";
                oSortImg.alt="时间正排序";
                oSortImg.src="../images/toolbar/arrupa.gif";
                oSortImg1.alt="时间正排序";
                oSortImg1.src="../images/toolbar/arrupa.gif";
            }
            ExeSearch(oType);
        }
        
        /* Go TO First Page */
        function doGoFirstPage(oType)
        {
            oCurrPageNo=1;
            ExeSearch(oType);            
        }
        
        /* Go TO Privious Page */
        function doGoPriviousPage(oType)
        {
            oCurrPageNo-=1;
            ExeSearch(oType);
        }
        
        /* Go To Next Page */
        function doGoNextPage(oType)
        {
            oCurrPageNo+=1;
            ExeSearch(oType);
        }
        
        /* Go To Last Page */
        function doGoLastPage(oType)
        {
            oCurrPageNo=oPageCount;
            ExeSearch(oType);
        }
        
        /* Jump To PageNo */
        function doGoNPage(oType)
        {
            var oJumpPageNo="1";
            if(oType=="0")
            {
                oJumpPageNo=jQuery.trim(document.getElementById("txtPageNo").value);
                if(oJumpPageNo=="")
                {
                    alert("请录入要跳转的页码！");
                    document.getElementById("txtPageNo").focus();
                    return;
                }
                else if(!oJumpPageNo.IsNumber())
                {
                    alert("录入的页码必须为数字！");
                    document.getElementById("txtPageNo").value="";
                    document.getElementById("txtPageNo").focus();
                    return;
                }
                else
                {
                    if(parseInt(oJumpPageNo,"10")>oPageCount)
                    {
                        alert("录入的页码不能大于总页数！");
                        document.getElementById("txtPageNo").value="";
                        document.getElementById("txtPageNo").focus();
                        return;
                    }
                }
            }
            else if(oType=="1")
            {
                oJumpPageNo=jQuery.trim(document.getElementById("txtPageNo1").value);
                if(oJumpPageNo=="")
                {
                    alert("请录入要跳转的页码！");
                    document.getElementById("txtPageNo1").focus();
                    return;
                }
                else if(!oJumpPageNo.IsNumber())
                {
                    alert("录入的页码必须为数字！");
                    document.getElementById("txtPageNo1").value="";
                    document.getElementById("txtPageNo1").focus();
                    return;
                }
                else
                {
                    if(parseInt(oJumpPageNo,"10")>oPageCount)
                    {
                        alert("录入的页码不能大于总页数！");
                        document.getElementById("txtPageNo1").value="";
                        document.getElementById("txtPageNo1").focus();
                        return;
                    }
                }
            }
            oCurrPageNo=parseInt(oJumpPageNo,"10");
            ExeSearch(oType);
        }
        
        /* Checked An Comment */
        function CheckAnComment()
        {
            var oComIds="";
            var otable=document.getElementById("tbCommentList");
            var oRowCount=otable.rows.length;
            for(var i=1;i<oRowCount;i+=2)
            {
                var orow=otable.rows[i];
                if(orow.cells(0).children(0).checked)
                {
                    oComIds+=orow.cells(0).children(1).value+",";
                }
            }
            if(oComIds!="")
                oComIds=oComIds.substring(0,oComIds.length-1);
            document.getElementById("hdCommentIds").value=oComIds;
        }
        
        /* Set Checked Commentes Top Status */
        function doTop(oComIds)
        {
            if(oComIds=="")
            {
                oComIds=document.getElementById("hdCommentIds").value;
                if(oComIds=="")
                {
                    alert("请选择要设置置顶的评论！");
                    return;
                }                                
            }
            PageMethods.OperateComment(oComIds,"Top",ClientCallBack1);
        }
        
        /* Cancel Checked Commentes Top Status */
        function doCancelTop(oComIds)
        {
            if(oComIds=="")
            {
                oComIds=document.getElementById("hdCommentIds").value;
                if(oComIds=="")
                {
                    alert("请选择要取消置顶的评论！");
                    return;
                }                                
            }
            PageMethods.OperateComment(oComIds,"CancelTop",ClientCallBack1);
        }
        
        /* Delete Checked Commentes */
        function doDelete(oComIds)
        {
            if(oComIds=="")
            {
                oComIds=document.getElementById("hdCommentIds").value;
                if(oComIds=="")
                {
                    alert("请选择要删除的评论！");
                    return;
                } 
                if(confirm("是否删除当前选择的评论？"))
                    PageMethods.OperateComment(oComIds,"Delete",ClientCallBack1);
            }
            else if(confirm("是否删除该评论？"))
                PageMethods.OperateComment(oComIds,"Delete",ClientCallBack1);
        }
        
        /* Express Comment */
        function doComment()
        {
            var oCommentContent=document.getElementById("txtCommentContent").value;
            if(oCommentContent=="")
            {
                alert("请输入评论内容！");
                return;
            }
            var oNewsId=document.getElementById("hdNewsId").value;
            var oExpType="0";
            if(document.getElementById("chkAnonymous").checked)
                oExpType="1";
            var msCommnet={};
            msCommnet.NewsId=oNewsId;
            msCommnet.ExpressType=oExpType;
            msCommnet.CommentContent=oCommentContent;
            var oCommentInfo=JSON.stringify(msCommnet,function(key,value){return value});
            PageMethods.OperateComment(oCommentInfo,"Comment",ClientCallBack1);
        }
        
        function ClientCallBack1(oRetResult)
        {
            var oResult=eval("("+oRetResult+")");
            var oOperType=oResult.OperType;
            var oExeResult=oResult.ExeResult;
            if(oOperType=="Top"&&!oExeResult)
            {
                alert("设置置顶失败，请稍后再试！");
                return;
            }
            else if(oOperType=="CancelTop"&&!oExeResult)
            {
                alert("取消置顶失败，请稍后再试！");
                return;
            }
            else if(oOperType=="Delete")
            {
                if(!oExeResult)
                {
                    alert("删除评论失败，请稍后再试！");
                    return;
                }
                else
                {
                    alert("删除成功！");
                    oCurrPageNo=1;
                }
            }
            else if(oOperType=="Comment")
            {
                if(oExeResult)
                {
                    alert("评论成功！");
                    document.getElementById("chkAnonymous").checked=false;
                    document.getElementById("txtCommentContent").value="";
                }
                else
                {
                    alert("评论失败，请稍后再试！");
                    return;
                }
            }
            document.getElementById("hdCommentIds").value="";
            ExeSearch();     
        }
        
        /* 录入页码 */
        function doPageNoChange(oType)
        {
            if(oType=="0")
                document.getElementById("txtPageNo1").value=document.getElementById("txtPageNo").value;
            else
                document.getElementById("txtPageNo").value=document.getElementById("txtPageNo1").value;
        }
        
        /*  */
        function doContentChange(oType)
        {
            if(oType=="0")
                document.getElementById("txtContent1").value=document.getElementById("txtContent").value;
            else
                document.getElementById("txtContent").value=document.getElementById("txtContent1").value;
        }
    //-->
    </script>
</head>
<body onload="doPageLoad()">
    <form id="form1" runat="server">
        <input type="hidden" id="hdNewsId" runat="server" />
        <input type="hidden" id="hdCommentIds" runat="server" />
        <input type="hidden" id="hdCommentType" runat="server" />
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
        <table border="0" cellspacing="0" cellpadding="0" align="center" width="98%" class="tbToolbar">
            <tr>
                <td><div class="tbSeparator"></div></td>
                <td class="titlebar" align="left" style="width:100%">
                    信息管理-评论管理
                </td>
                <td><div class="tbSeparatorEnd"></div></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" align="center" width="98%" class="tableborder">
            <tr>
                <td align="center" colspan="3" style="width:100%" class="pformright">
                    <nobr>
                        <asp:Label ID="lblTitleName" runat="server"></asp:Label>
                    </nobr>
                </td>
            </tr>
            <tr>
                <td style="width:70%" class="commentbar" align="right">
                    <nobr>
                        共有<label id="lblCommentCount" style="cursor:default" runat="server"></label>条评论&nbsp;
                        第<label id="lblCurrPage" runat="server" style="cursor:default"></label>页&nbsp;
                        <a id="haFirstPage" class="link" href="javascript:doGoFirstPage('0')" runat="server">首页</a>&nbsp;
                        <a id="haPriviousPage" class="link" href="javascript:doGoPriviousPage('0')" runat="server">上一页</a>&nbsp;
                        <a id="haNextPage" class="link" href="javascript:doGoNextPage('0')" runat="server">下一页</a>&nbsp;
                        <a id="haLastPage" class="link" href="javascript:doGoLastPage('0')" runat="server">尾页</a>&nbsp;
                        跳转到【<input type="text" id="txtPageNo" runat="server" onchange="doPageNoChange('0')" style="text-align:center;cursor:text;width:30px" class="inputreadonly"/>】页
                        <a id="haJump" class="link" href="javascript:doGoNPage('0')" runat="server">GO</a>
                    </nobr>
                </td>
                <td style="width:30%" class="commentbar" runat="server" align="right" id="tdContent">
                    <nobr>
                        内容
                        <input type="text" id="txtContent" onchange="doContentChange('0')" runat="server" class="input" style="width:150px" />
                    </nobr>
                </td>
                <td class="commentbar" align="right">
                    <nobr>
                        <a href="javascript:doSearch('0')" id="haSearch" title="查询" class="linktext" runat="server"><img alt="查询" src="../images/toolbar/search.gif" /></a>
                        <a href="javascript:doSort('0')" title="排序" class="linktext" runat="server"><img id='imgSort' alt="时间正排序" src="../images/toolbar/arrupa.gif" /></a>
                        <a href="javascript:doTop('')" id="haTop" title="置顶" class="linktext" runat="server"><img alt="置顶" src="../images/toolbar/backtop.gif" /></a>
                        <a href="javascript:doCancelTop('')" id="haCancelTop" title="取消置顶" class="linktext" runat="server"><img alt="取消置顶" src="../images/toolbar/redo.gif" /></a>
                        <a href="javascript:doDelete('')" title="删除" id="haDelete" class="linktext" runat="server"><img alt="删除" src="../images/toolbar/delete.gif" /></a>
                    </nobr>
                </td>
            </tr>
            <tr>
                <td colspan="3" width="100%" valign="top">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="tbCommentList" runat="server">
                        <tr id="trNoData" runat="server">
                            <td colspan="4" height="80px" class="tbcommentBottom" align="center" width="100%" valign="middle"><font size="2px">No data to display</font></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="width:70%" align="right" class="commentbar">
                    <nobr>
                        共有<label id="lblCommentCount1" style="cursor:default" runat="server"></label>条评论&nbsp;
                        第<label id="lblCurrPage1" runat="server" style="cursor:default"></label>页&nbsp;
                        <a id="haFirstPage1" class="link" href="javascript:doGoFirstPage('1')" runat="server">首页</a>&nbsp;
                        <a id="haPriviousPage1" class="link" href="javascript:doGoPriviousPage('1')" runat="server">上一页</a>&nbsp;
                        <a id="haNextPage1" class="link" href="javascript:doGoNextPage('1')" runat="server">下一页</a>&nbsp;
                        <a id="haLastPage1" class="link" href="javascript:doGoLastPage('1')" runat="server">尾页</a>&nbsp;
                        跳转到【<input type="text" id="txtPageNo1" runat="server" onchange="doPageNoChange('1')" style="text-align:center;cursor:text;width:30px" class="inputreadonly"/>】页
                        <a id="haJump1" class="link" href="javascript:doGoNPage('1')" runat="server">GO</a>
                    </nobr>
                </td>
                <td style="width:30%" align="right" runat="server" class="commentbar" id="tdContent1">
                    <nobr>
                        内容
                        <input type="text" id="txtContent1" class="input" onchange="doContentChange('1')" runat="server" style="width:150px" />
                    </nobr>
                </td>
                <td class="commentbar" align="right">
                    <nobr>
                        <a href="javascript:doSearch('1')" title="查询" id="haSearch1" class="linktext" runat="server"><img alt="查询" src="../images/toolbar/search.gif" /></a>
                        <a href="javascript:doSort('1')" title="排序" class="linktext" runat="server"><img id='imgSort1' alt="时间正排序" src="../images/toolbar/arrupa.gif" /></a>
                        <a href="javascript:doTop('')" title="置顶" id="haTop1" class="linktext" runat="server"><img alt="置顶" src="../images/toolbar/backtop.gif" /></a>
                        <a href="javascript:doCancelTop('')" id="haCancelTop1" title="取消置顶" class="linktext" runat="server"><img alt="取消置顶" src="../images/toolbar/redo.gif" /></a>
                        <a href="javascript:doDelete('')" title="删除" id="haDelete1" class="linktext" runat="server"><img alt="删除" src="../images/toolbar/delete.gif" /></a>
                    </nobr>
                </td>
            </tr>
            <tr id="trComment" runat="server" style="display:none">
                <td width="100%" colspan="3">
                    <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
                        <tr>
                            <td colspan="2" class="pformright" width="100%" align="center">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td align="left" width="20%" class="pformright">
                                <nobr>
                                    &nbsp;<img src="../images/toolbar/star.jpg" /> 请您评论：
                                </nobr>
                            </td>
                            <td align="left" width="80%" class="pformright">
                                <input type="checkbox" id="chkAnonymous" class="checkbox" /><label for="chkAnonymous">匿名发表</label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="pformright" width="100%" align="center">
                                <%--<textarea id="txtCommentContent" runat="server" class="inputarea" style="width:99.4%" rows="5"></textarea>--%>
                                <asp:TextBox ID="txtCommentContent" runat="server" CssClass="inputarea"  TextMode="MultiLine" Rows="5" Width="99.4%"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="pformstrip" width="100%" align="center">
                                <input type="button" id="btnExpressComment" runat="server" onclick="doComment()" class="button" value="发表评论" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
